package com.ytzl.itrip.dao.auto.userinfo;

import com.ytzl.itrip.pojo.po.userinfo.ItripUserLinkUser;
import com.ytzl.itrip.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface ItripUserLinkUserMapper extends MyMapper<ItripUserLinkUser> {
    /**
     * 查询常用联系人
     * @param id
     * @param name
     * @return
     * @throws Exception
     */
    List<ItripUserLinkUser> queryItripUserLinkUserMapperById(@Param("id") Integer id,@Param("name") String name) throws Exception;

    /**
     *  根据id删除常用联系人
     * @param id    联系人id
     * @return  删除结果
     * @throws Exception    抛出异常
     */
    int deleteLinkUserById(@Param("id")Integer id) throws Exception;
    /**
     * 添加常用旅客信息
     * @param itripUserLinkUser
     * @return
     * @throws Exception
     */
    int addOftenLinkUser(ItripUserLinkUser itripUserLinkUser) throws Exception;
  /**
     * 修改常用联系人
     * @param itripUserLinkUser
     * @return
     * @throws Exception
     */
    Integer updateOftenLinkUser(ItripUserLinkUser itripUserLinkUser)throws Exception;
}